package org.yzh.web.mp.mapper;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Insert;
import org.yzh.web.mp.entity.Alarm64;

/**
 * @author nick
 * @description 64报警mapper
 * @date 2022/6/14
 **/
@DS("taos")
public interface TaosAlarm64Mapper extends BaseMapper<Alarm64> {

    /**
     * 新增
     *
     * @param one 实体
     * @return /
     */
    @Insert("insert into alarm64_${cid} using alarm64 (cid) tags(${cid}) values " +
            " (#{time}, #{vehicleId}, #{eventType}, #{alarmLevel}, #{alarmId}, #{attachments}," +
            " #{longitude}, #{latitude}, #{addTime})")
    int insertOne(Alarm64 one);

}
